#!/bin/bash

read -p "请输入文件名" fname

if grep "^$" $fname &>/dev/null;then
	nullnumber=$(grep "^$" $fname | wc -l)
	echo "文件$fname空行数量为$nullnumber"
else
	echo "文件$fname无空行"
fi
